<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <script src="./html2canvas.min.js"></script>
    <script src="./qrcode.min.js"></script>
    <title>Document</title>
</head>

<body>

    <div id="qrcode"></div>
    <script>
        var qrcode = new QRCode(document.getElementById("qrcode"), {
            width: 110,
            height: 110
        });
        function makeCode() {
            let recordid = 'https://www.bilibili.com/';
            qrcode.makeCode(recordid);
        } makeCode()
    </script>
</body>

</html>